<?php

namespace App\Http\Controllers;

use App\FormModel;
use Illuminate\Http\Request;

class BaharController extends Controller
{
    public function bahar(){
        return view("bahar");
    }
    public  function add(Request $request){
        $rasim = $request->file('pic');
        dd($rasim);
        $rasim->move(public_path('man'),$rasim->getClientOriginalName());

        $input=$request->input();
        unset($input['token']);
        $ok=FormModel::created($input);

    }
}
